package SV_LOG_FORGING;

public class Example {
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String amount = req.getParameter("amount");
        try {
            int iAmount = Integer.parseInt(amount);
            processAmount(iAmount);
        } catch (NumberFormatException e) {
            req.getSession().getServletContext().log("Incorrect int value specified for the 'amount' " + amount);
        }
    }

}
